﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web.Mvc;

using Mvc.XForms.Controls.Settings;

namespace Mvc.XForms.Controls {
	public static class OutputExtensions {
		public static OutputSettings Output<TContext>(this IContainerControl<TContext> parent, Expression<Func<TContext, object>> bind) {
			var output = new Output<TContext>(parent, bind);
			return output.Settings;
        }
    }
}